<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.lbi.typography.TypographyHelper</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.lbi.typography" rel="up"/><link href="../../../com/lbi/typography/TypographyBase.html" title="Class com.lbi.typography.TypographyBase" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.lbi.typography.TypographyHelper</h1><div class="type_hierachy"><ul><li><strong>com.lbi.typography.TypographyHelper</strong></li></ul></div><div class="type_description"><h2>Description</h2><p>
 	LBi Useful ActionScript 2 Library
    Copyright (C) 2007 LBi / Michael Forrest

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 Um... this isn't that good yet... 
 </p></div><div class="type_indexes"><div class="field_index"><h2>Field Index</h2><a href="#MAGIC_PADDING" title="static public MAGIC_PADDING:Number">MAGIC_PADDING</a></div><div class="method_index"><h2>Method Index</h2><a href="#fitHorizontally" title="static public function fitHorizontally(txt:TextField):Void">fitHorizontally()</a>, <a href="#getLinesNumberPlain" title="static public function getLinesNumberPlain(style:TypographyBase, text:String, textfield_width:Number, container:MovieClip):Number">getLinesNumberPlain()</a>, <a href="#getLinesPlain" title="static public function getLinesPlain(style:TypographyBase, text:String, textfield_width:Number, container:MovieClip):Array">getLinesPlain()</a>, <a href="#getLineWidthPlain" title="static public function getLineWidthPlain(style:TypographyBase, text:String, container:MovieClip):Number">getLineWidthPlain()</a>, <a href="#getLineWidths" title="static public function getLineWidths(txt:TextField, html:Boolean):Array">getLineWidths()</a>, <a href="#getLineWidthsPlain" title="static public function getLineWidthsPlain(style:TypographyBase, text:String, textfield_width:Number, container:MovieClip):Array">getLineWidthsPlain()</a>, <a href="#heightOfOneLine" title="static public function heightOfOneLine(txt:TextField):Number">heightOfOneLine()</a>, <a href="#isHtml" title="static public function isHtml(s:String):Boolean">isHtml()</a>, <a href="#isMultiLine" title="static public function isMultiLine(txt:TextField):Boolean">isMultiLine()</a></div></div><div class="type_details"><div class="field_detail_list"><h2>Field Detail</h2><a name="MAGIC_PADDING"></a><h3>MAGIC_PADDING</h3><div class="field_details"><code class="field_synopsis">static public <strong class="field_name">MAGIC_PADDING</strong>:<span class="unresolved_type_name">Number</span></code></div></div><div class="method_detail_list"><h2>Method Detail</h2><div class="method_details alt_row"><a name="getLineWidthsPlain"></a><h3>getLineWidthsPlain</h3><code class="method_synopsis">static public function <strong class="method_name">getLineWidthsPlain</strong>(style:<a href="../../../com/lbi/typography/TypographyBase.html" class="class_name" title="Class com.lbi.typography.TypographyBase">TypographyBase</a>, text:<span class="unresolved_type_name">String</span>, textfield_width:<span class="unresolved_type_name">Number</span>, container:<span class="unresolved_type_name">MovieClip</span>):<span class="unresolved_type_name">Array</span></code><div class="method_info"></div></div><div class="method_details"><a name="getLinesNumberPlain"></a><h3>getLinesNumberPlain</h3><code class="method_synopsis">static public function <strong class="method_name">getLinesNumberPlain</strong>(style:<a href="../../../com/lbi/typography/TypographyBase.html" class="class_name" title="Class com.lbi.typography.TypographyBase">TypographyBase</a>, text:<span class="unresolved_type_name">String</span>, textfield_width:<span class="unresolved_type_name">Number</span>, container:<span class="unresolved_type_name">MovieClip</span>):<span class="unresolved_type_name">Number</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="getLinesPlain"></a><h3>getLinesPlain</h3><code class="method_synopsis">static public function <strong class="method_name">getLinesPlain</strong>(style:<a href="../../../com/lbi/typography/TypographyBase.html" class="class_name" title="Class com.lbi.typography.TypographyBase">TypographyBase</a>, text:<span class="unresolved_type_name">String</span>, textfield_width:<span class="unresolved_type_name">Number</span>, container:<span class="unresolved_type_name">MovieClip</span>):<span class="unresolved_type_name">Array</span></code><div class="method_info"></div></div><div class="method_details"><a name="getLineWidthPlain"></a><h3>getLineWidthPlain</h3><code class="method_synopsis">static public function <strong class="method_name">getLineWidthPlain</strong>(style:<a href="../../../com/lbi/typography/TypographyBase.html" class="class_name" title="Class com.lbi.typography.TypographyBase">TypographyBase</a>, text:<span class="unresolved_type_name">String</span>, container:<span class="unresolved_type_name">MovieClip</span>):<span class="unresolved_type_name">Number</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="getLineWidths"></a><h3>getLineWidths</h3><code class="method_synopsis">static public function <strong class="method_name">getLineWidths</strong>(txt:<span class="unresolved_type_name">TextField</span>, html:<span class="unresolved_type_name">Boolean</span>):<span class="unresolved_type_name">Array</span></code><div class="method_info"></div></div><div class="method_details"><a name="isHtml"></a><h3>isHtml</h3><code class="method_synopsis">static public function <strong class="method_name">isHtml</strong>(s:<span class="unresolved_type_name">String</span>):<span class="unresolved_type_name">Boolean</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="isMultiLine"></a><h3>isMultiLine</h3><code class="method_synopsis">static public function <strong class="method_name">isMultiLine</strong>(txt:<span class="unresolved_type_name">TextField</span>):<span class="unresolved_type_name">Boolean</span></code><div class="method_info"></div></div><div class="method_details"><a name="heightOfOneLine"></a><h3>heightOfOneLine</h3><code class="method_synopsis">static public function <strong class="method_name">heightOfOneLine</strong>(txt:<span class="unresolved_type_name">TextField</span>):<span class="unresolved_type_name">Number</span></code><div class="method_info"></div></div><div class="method_details alt_row"><a name="fitHorizontally"></a><h3>fitHorizontally</h3><code class="method_synopsis">static public function <strong class="method_name">fitHorizontally</strong>(txt:<span class="unresolved_type_name">TextField</span>):<span class="void_name">Void</span></code><div class="method_info"></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of API" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.lbi.typography" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>